home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / copytape.lha / copytape / copytape.5.man < prev    next >
Text File  |  1990-01-09  |  2KB  |  67 lines

  1.  
  2.  
  3.  
  4.                                                       COPYTAPE(5)
  5.  
  6.  
  7.  
  8. NAME
  9.      copytape - copytape intermediate data file format
  10.  
  11. DESCRIPTION
  12.      _c_o_p_y_t_a_p_e duplicates magtapes on single-tape systems by mak-
  13.      ing an intermediate copy of the tape in a disk file.  This
  14.      disk file has a special format that preserves the block
  15.      boundaries and tape marks of the original physical tape.
  16.  
  17.      Each block is preceded by a header identifying what sort of
  18.      block it is.  In the case of data blocks, the length of the
  19.      data is also given.  Each header is on a separate text line,
  20.      followed by a newline character.
  21.  
  22.  
  23.      CPTP:BLK _n_n_n_n_n_n
  24.      _d_a_t_a\n
  25.  
  26.         A data block is identified by the keyword _B_L_K.  The
  27.         length of the block is given in a six-character numeric
  28.         field.  The field is zero-padded on the left if less than
  29.         six characters are needed.  The header is followed by a
  30.         newline character.  The original data follows.  The data
  31.         may have any characters in it, since _c_o_p_y_t_a_p_e uses a
  32.         read(2) to extract it.  The data is followed by a new-
  33.         line, to make the file easy to view with an editor.
  34.  
  35.      CPTP:MRK
  36.         A tape mark was encountered in the original tape.
  37.  
  38.      CPTP:EOT
  39.         When two consecutive tape marks are encountered, _c_o_p_y_t_a_p_e
  40.         treats the second as a logical end-of-tape.  On output,
  41.         both MRK and EOT generate a physical tape mark.  _c_o_p_y_t_a_p_e
  42.         stops processing after copying an EOT.
  43.  
  44. SEE ALSO
  45.      mtio(4)
  46.  
  47. BUGS
  48.      Some weird tapes may not use two consecutive tape marks as
  49.      logical end-of-tape.
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                 1
  64.  
  65.  
  66.  
  67.